package com.ourteam.product.ui.dao;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import net.dao.BaseQueryBean;
import net.dao.BaseWhereCriterion;
import net.dao.IDataAccessInterface;
import org.apache.commons.lang.StringUtils;

/**
 * Template Name : DAO查询对象 Template Version : 1 Template Last Modfiy Date : Sat Aug 19 10:06:32 CST
 * 2017 Auto Generate Date : 2018-12-14 15:15:12 Warning ! This file will be overwrite when
 * regenerate !
 */
public class ProductUIFormLayoutDataDAOQueryBean extends BaseQueryBean {

  public ProductUIFormLayoutDataDAOQueryBean() {
    super();
  }

  public ProductUIFormLayoutDataDAOQueryBean(BaseQueryBean aQueryBean) {
    super(aQueryBean);
  }

  public ProductUIFormLayoutDataDAOQueryBean(BaseQueryBean aQueryBean, Map tableReplaceMap) {
    super(aQueryBean, tableReplaceMap);
  }

  public Criteria createCriteria() {

    Criteria criteria = createCriteriaInternal();
    if (oredCriteria.size() == 0) {
      oredCriteria.add(criteria);
    }
    return criteria;
  }

  protected Criteria createCriteriaInternal() {
    return new Criteria(this);
  }

  public void addIdSelectProperty() {
    addIdSelectProperty("id");
  }

  public void addIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIFormLayoutDataDAO.Id, aAlias);
    } else {
      addSelectProperty(IProductUIFormLayoutDataDAO.Id, "id");
    }
  }

  public void addFormFieldIdSelectProperty() {
    addFormFieldIdSelectProperty("formFieldId");
  }

  public void addFormFieldIdSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIFormLayoutDataDAO.FormFieldId, aAlias);
    } else {
      addSelectProperty(IProductUIFormLayoutDataDAO.FormFieldId, "formFieldId");
    }
  }

  public void addNameSelectProperty() {
    addNameSelectProperty("name");
  }

  public void addNameSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIFormLayoutDataDAO.Name, aAlias);
    } else {
      addSelectProperty(IProductUIFormLayoutDataDAO.Name, "name");
    }
  }

  public void addValueSelectProperty() {
    addValueSelectProperty("value");
  }

  public void addValueSelectProperty(String aAlias) {
    if (StringUtils.isNotBlank(aAlias)) {
      addSelectProperty(IProductUIFormLayoutDataDAO.Value, aAlias);
    } else {
      addSelectProperty(IProductUIFormLayoutDataDAO.Value, "value");
    }
  }

  public void addAllSelectProperties() {

    addIdSelectProperty();

    addFormFieldIdSelectProperty();

    addNameSelectProperty();

    addValueSelectProperty();
  }

  public static class Criteria extends BaseWhereCriterion<ProductUIFormLayoutDataDAOQueryBean> {

    protected Criteria(ProductUIFormLayoutDataDAOQueryBean aParentObject) {
      super(aParentObject);
    }

    public Criteria andIdIsNull() {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " is null");
      return this;
    }

    public Criteria andIdIsNotNull() {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " is not null");
      return this;
    }

    public Criteria andIdIsNotEmpty() {
      addCriterion(
          IProductUIFormLayoutDataDAO.Id
              + " is not null AND "
              + IProductUIFormLayoutDataDAO.Id
              + " <> ''");
      return this;
    }

    public Criteria andIdIsEmpty() {
      addCriterion(
          "("
              + IProductUIFormLayoutDataDAO.Id
              + " is null OR "
              + IProductUIFormLayoutDataDAO.Id
              + " = '')");
      return this;
    }

    public Criteria andIdEqualTo(long value) {
      return andIdEqualTo(Long.valueOf(value));
    }

    public Criteria andIdEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.Id + " = ", value, "id");
      return this;
    }

    public Criteria andIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Id);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotEqualTo(long value) {
      return andIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andIdNotEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.Id + " <>", value, "id");
      return this;
    }

    public Criteria andIdNotEqualToOrIsNull(long value) {
      return andIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IProductUIFormLayoutDataDAO.Id + " is null OR " + IProductUIFormLayoutDataDAO.Id + " <>",
          value,
          "id");
      return this;
    }

    public Criteria andIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Id);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThan(long value) {
      return andIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andIdGreaterThan(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.Id + " >", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Id);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(long value) {
      return andIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.Id + " >=", value, "id");
      return this;
    }

    public Criteria andIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Id);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThan(long value) {
      return andIdLessThan(Long.valueOf(value));
    }

    public Criteria andIdLessThan(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.Id + " <", value, "id");
      return this;
    }

    public Criteria andIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Id);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(long value) {
      return andIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.Id + " <=", value, "id");
      return this;
    }

    public Criteria andIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Id);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdIn(long[] values) {
      if (values.length == 1) {
        return andIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andIdEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Id + " in", values, "id");
        return this;
      }
    }

    public Criteria andIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Id + " not in", values, "id");
        return this;
      }
    }

    public Criteria andIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andIdEqualTo(values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Id + " in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andIdNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Id + " not in", Arrays.asList(values), "id");
        return this;
      }
    }

    public Criteria andIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andIdBetween(long value1, long value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(long value1, long value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Id + " not between", value1, value2, "id");
      return this;
    }

    public Criteria andFormFieldIdIsNull() {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " is null");
      return this;
    }

    public Criteria andFormFieldIdIsNotNull() {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " is not null");
      return this;
    }

    public Criteria andFormFieldIdIsNotEmpty() {
      addCriterion(
          IProductUIFormLayoutDataDAO.FormFieldId
              + " is not null AND "
              + IProductUIFormLayoutDataDAO.FormFieldId
              + " <> ''");
      return this;
    }

    public Criteria andFormFieldIdIsEmpty() {
      addCriterion(
          "("
              + IProductUIFormLayoutDataDAO.FormFieldId
              + " is null OR "
              + IProductUIFormLayoutDataDAO.FormFieldId
              + " = '')");
      return this;
    }

    public Criteria andFormFieldIdEqualTo(long value) {
      return andFormFieldIdEqualTo(Long.valueOf(value));
    }

    public Criteria andFormFieldIdEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " = ", value, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.FormFieldId);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andFormFieldIdEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdNotEqualTo(long value) {
      return andFormFieldIdNotEqualTo(Long.valueOf(value));
    }

    public Criteria andFormFieldIdNotEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " <>", value, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdNotEqualToOrIsNull(long value) {
      return andFormFieldIdNotEqualToOrIsNull(Long.valueOf(value));
    }

    public Criteria andFormFieldIdNotEqualToOrIsNull(java.lang.Long value) {

      addCriterion(
          IProductUIFormLayoutDataDAO.FormFieldId
              + " is null OR "
              + IProductUIFormLayoutDataDAO.FormFieldId
              + " <>",
          value,
          "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.FormFieldId);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andFormFieldIdNotEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdGreaterThan(long value) {
      return andFormFieldIdGreaterThan(Long.valueOf(value));
    }

    public Criteria andFormFieldIdGreaterThan(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " >", value, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.FormFieldId);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andFormFieldIdGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdGreaterThanOrEqualTo(long value) {
      return andFormFieldIdGreaterThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andFormFieldIdGreaterThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " >=", value, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.FormFieldId);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andFormFieldIdGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdLessThan(long value) {
      return andFormFieldIdLessThan(Long.valueOf(value));
    }

    public Criteria andFormFieldIdLessThan(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " <", value, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.FormFieldId);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andFormFieldIdLessThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdLessThanOrEqualTo(long value) {
      return andFormFieldIdLessThanOrEqualTo(Long.valueOf(value));
    }

    public Criteria andFormFieldIdLessThanOrEqualTo(java.lang.Long value) {

      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " <=", value, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.FormFieldId);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andFormFieldIdLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdIn(long[] values) {
      if (values.length == 1) {
        return andFormFieldIdEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " in", values, "formFieldId");
        return this;
      }
    }

    public Criteria andFormFieldIdNotIn(long[] values) {
      if (values.length == 1) {
        return andFormFieldIdNotEqualTo((java.lang.Long) values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " not in", values, "formFieldId");
        return this;
      }
    }

    public Criteria andFormFieldIdIn(List<java.lang.Long> values) {

      if (values.size() == 1) {
        return andFormFieldIdEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " in", values, "formFieldId");
        return this;
      }
    }

    public Criteria andFormFieldIdNotIn(List<java.lang.Long> values) {
      if (values.size() == 1) {
        return andFormFieldIdNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " not in", values, "formFieldId");
        return this;
      }
    }

    public Criteria andFormFieldIdIn(java.lang.Long[] values) {

      if (values.length == 1) {
        return andFormFieldIdEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIFormLayoutDataDAO.FormFieldId + " in", Arrays.asList(values), "formFieldId");
        return this;
      }
    }

    public Criteria andFormFieldIdNotIn(java.lang.Long[] values) {
      if (values.length == 1) {
        return andFormFieldIdNotEqualTo(values[0]);
      } else {
        addCriterion(
            IProductUIFormLayoutDataDAO.FormFieldId + " not in",
            Arrays.asList(values),
            "formFieldId");
        return this;
      }
    }

    public Criteria andFormFieldIdIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdNotIn(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.FormFieldId + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andFormFieldIdBetween(long value1, long value2) {
      addCriterion(
          IProductUIFormLayoutDataDAO.FormFieldId + " between", value1, value2, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IProductUIFormLayoutDataDAO.FormFieldId + " between", value1, value2, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdNotBetween(long value1, long value2) {
      addCriterion(
          IProductUIFormLayoutDataDAO.FormFieldId + " not between", value1, value2, "formFieldId");
      return this;
    }

    public Criteria andFormFieldIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
      addCriterion(
          IProductUIFormLayoutDataDAO.FormFieldId + " not between", value1, value2, "formFieldId");
      return this;
    }

    public Criteria andNameIsNull() {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " is null");
      return this;
    }

    public Criteria andNameIsNotNull() {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " is not null");
      return this;
    }

    public Criteria andNameIsNotEmpty() {
      addCriterion(
          IProductUIFormLayoutDataDAO.Name
              + " is not null AND "
              + IProductUIFormLayoutDataDAO.Name
              + " <> ''");
      return this;
    }

    public Criteria andNameIsEmpty() {
      addCriterion(
          "("
              + IProductUIFormLayoutDataDAO.Name
              + " is null OR "
              + IProductUIFormLayoutDataDAO.Name
              + " = '')");
      return this;
    }

    public Criteria andNameEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Name + " = ", value, "name");
      return this;
    }

    public Criteria andNameEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Name);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andNameEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameNotEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Name + " <>", value, "name");
      return this;
    }

    public Criteria andNameNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIFormLayoutDataDAO.Name
              + " is null OR "
              + IProductUIFormLayoutDataDAO.Name
              + " <>",
          value,
          "name");
      return this;
    }

    public Criteria andNameNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Name);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andNameNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameGreaterThan(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Name + " >", value, "name");
      return this;
    }

    public Criteria andNameGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Name);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andNameGreaterThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Name + " >=", value, "name");
      return this;
    }

    public Criteria andNameGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Name);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andNameGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameLessThan(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Name + " <", value, "name");
      return this;
    }

    public Criteria andNameLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Name);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andNameLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameLessThanOrEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Name + " <=", value, "name");
      return this;
    }

    public Criteria andNameLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Name);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andNameLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIFormLayoutDataDAO.Name + " like", buffer.toString(), "name");
      return this;
    }

    public Criteria andNameNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIFormLayoutDataDAO.Name + " not like", buffer.toString(), "name");
      return this;
    }

    public Criteria andNameIn(List<String> values) {

      if (values.size() == 1) {
        return andNameEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Name + " in", values, "name");
        return this;
      }
    }

    public Criteria andNameNotIn(List<String> values) {
      if (values.size() == 1) {
        return andNameNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Name + " not in", values, "name");
        return this;
      }
    }

    public Criteria andNameIn(String[] values) {

      if (values.length == 1) {
        return andNameEqualTo(values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Name + " in", Arrays.asList(values), "name");
        return this;
      }
    }

    public Criteria andNameNotIn(String[] values) {
      if (values.length == 1) {
        return andNameNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Name + " not in", Arrays.asList(values), "name");
        return this;
      }
    }

    public Criteria andNameIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andNameBetween(String value1, String value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " between", value1, value2, "name");
      return this;
    }

    public Criteria andNameNotBetween(String value1, String value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Name + " not between", value1, value2, "name");
      return this;
    }

    public Criteria andValueIsNull() {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " is null");
      return this;
    }

    public Criteria andValueIsNotNull() {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " is not null");
      return this;
    }

    public Criteria andValueIsNotEmpty() {
      addCriterion(
          IProductUIFormLayoutDataDAO.Value
              + " is not null AND "
              + IProductUIFormLayoutDataDAO.Value
              + " <> ''");
      return this;
    }

    public Criteria andValueIsEmpty() {
      addCriterion(
          "("
              + IProductUIFormLayoutDataDAO.Value
              + " is null OR "
              + IProductUIFormLayoutDataDAO.Value
              + " = '')");
      return this;
    }

    public Criteria andValueEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Value + " = ", value, "value");
      return this;
    }

    public Criteria andValueEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Value);
      str.append(" = ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andValueEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " = ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueNotEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Value + " <>", value, "value");
      return this;
    }

    public Criteria andValueNotEqualToOrIsNull(String value) {

      addCriterion(
          IProductUIFormLayoutDataDAO.Value
              + " is null OR "
              + IProductUIFormLayoutDataDAO.Value
              + " <>",
          value,
          "value");
      return this;
    }

    public Criteria andValueNotEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Value);
      str.append(" <> ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andValueNotEqualTo(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " <> ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueGreaterThan(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Value + " >", value, "value");
      return this;
    }

    public Criteria andValueGreaterThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Value);
      str.append(" > ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andValueGreaterThan(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " > ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueGreaterThanOrEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Value + " >=", value, "value");
      return this;
    }

    public Criteria andValueGreaterThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Value);
      str.append(" >= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andValueGreaterThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " >= ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueLessThan(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Value + " <", value, "value");
      return this;
    }

    public Criteria andValueLessThanForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Value);
      str.append(" < ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andValueLessThan(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " < ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueLessThanOrEqualTo(String value) {

      addCriterion(IProductUIFormLayoutDataDAO.Value + " <=", value, "value");
      return this;
    }

    public Criteria andValueLessThanOrEqualToForeignKey(java.lang.String key) {
      StringBuffer str = new StringBuffer(IProductUIFormLayoutDataDAO.Value);
      str.append(" <= ").append(key);
      addForeignKeyCriterion(str.toString());
      return this;
    }

    public Criteria andValueLessThanOrEqualTo(
        BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " <= ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIFormLayoutDataDAO.Value + " like", buffer.toString(), "value");
      return this;
    }

    public Criteria andValueNotLike(String value) {
      StringBuffer buffer = new StringBuffer("%");
      buffer.append(value);
      buffer.append("%");
      addCriterion(IProductUIFormLayoutDataDAO.Value + " not like", buffer.toString(), "value");
      return this;
    }

    public Criteria andValueIn(List<String> values) {

      if (values.size() == 1) {
        return andValueEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Value + " in", values, "value");
        return this;
      }
    }

    public Criteria andValueNotIn(List<String> values) {
      if (values.size() == 1) {
        return andValueNotEqualTo(values.get(0));
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Value + " not in", values, "value");
        return this;
      }
    }

    public Criteria andValueIn(String[] values) {

      if (values.length == 1) {
        return andValueEqualTo(values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Value + " in", Arrays.asList(values), "value");
        return this;
      }
    }

    public Criteria andValueNotIn(String[] values) {
      if (values.length == 1) {
        return andValueNotEqualTo(values[0]);
      } else {
        addCriterion(IProductUIFormLayoutDataDAO.Value + " not in", Arrays.asList(values), "value");
        return this;
      }
    }

    public Criteria andValueIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " in ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueNotIn(BaseQueryBean subQueryBean, IDataAccessInterface<?, ?> dao) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " not in ", subQueryBean, dao);
      return this;
    }

    public Criteria andValueBetween(String value1, String value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " between", value1, value2, "value");
      return this;
    }

    public Criteria andValueNotBetween(String value1, String value2) {
      addCriterion(IProductUIFormLayoutDataDAO.Value + " not between", value1, value2, "value");
      return this;
    }
  }
}
